﻿<%@ Page Title="Add article" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="New.aspx.cs" Inherits="PublSystem.New" %>

<asp:Content ID="NewArticle" ContentPlaceHolderID="MainContent" runat="server">
    <asp:LoginView runat="server" ViewStateMode="Disabled">
        <AnonymousTemplate>
            Author: <b>Anonymous</b><br />
        </AnonymousTemplate>
        <LoggedInTemplate>
            <p></p>
            Author: <b><%: Context.User.Identity.GetUserName()  %></b><br />

        </LoggedInTemplate>
        
    </asp:LoginView>
    <label>Title:</label><br />
        <asp:TextBox ID="txtTitle" runat="server" CssClass="form-control" Height="39px" Width="348px"></asp:TextBox>
        <br />
        <label>Article summary:</label><br />
        <asp:TextBox ID="txtContent" runat="server" Height="112px" Rows="10" TextMode="MultiLine" Width="380px" CssClass="form-control"></asp:TextBox>
        <br />
        <label>Keywords (by comma or space):</label><br />
        <asp:TextBox ID="txtKeywords" runat="server" CssClass="form-control"></asp:TextBox>
        <br />
        <asp:Button ID="ButbuttonSubmit" class="btn btn-default" runat="server" Text="Add Article" OnClick="ButbuttonSubmit_Click" />
        <br />
</asp:Content>
